/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package smary.ejb.stateless;

import javax.ejb.Local;
import smary.ejb.entity.Userloginaccount;

/**
 * Lokales Interface zur Rechtegewährung.
 * Jede Aktionsanforderung hat eine statische Nummer.
 * Todo: Später per N zu N Tabelle lösen.
 * @author Alex
 */
@Local
public interface CheckRightsServiceLocal {
    public static int createUser = 0;
    public static int createScrumTeam = 1;
    public static int createSprint = 2;
    public static int createTask = 3;
    public static int createUserStory = 4;
    public static int createStatusAenderung = 5;
    public static int createBackLog = 6;
    public static int createScrumProjekt = 7;
    
    public static int deleteUser = 8;
    public static int deleteScrumTeam=9;
    public static int deleteSprint=10;
    public static int deleteTask=11;
    public static int deleteUserStory=12;
    public static int deleteStatusAenderung = 13;
    public static int deleteBackLog = 14;
    public static int deleteScrumProjekt = 15;
    
    public boolean CheckRights(Userloginaccount u, int action);
    
}
